package com.mjx.algorithm.oj;

import java.util.Scanner;

/**
 * 统计字符
 * Created by meijingxiang on 2017/2/8.
 */
public class problem1701 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int[] a = new  int[129];
        boolean flag = false;
        String s;
        s = scanner.nextLine();
        for (int i = 0; i < s.length(); i++) {
            char c = s.charAt(i);
            if (c != '#') {
                a[c]++;
                flag = true;
            }
            else
                break;
        }
        if (s.length() == 0 || !flag)
            System.out.println("没有字符");
        else {
            for (int i = 0; i < 128; i++) {
                if (a[i] > 0) {
                    if(i>=97 && i<=122)
                        System.out.println((char) (i - 32) + ":" + a[i]);
                    else
                        System.out.println((char) (i) + ":" + a[i]);
                }
            }
        }
    }
}
